export default app => {
    app.config.globalProperties.$api = {
        imgPath: process.env.VUE_APP_IMA,
        video: {
            // 查看无需加api
            QueryLivePushNode: 'oam/video/QueryLivePushNode',
            QueryVodNode: 'oam/video/QueryVodNode',
            QueryLivePullStream: 'oam/video/QueryLivePullStream',
            QueryVodPullStream: 'oam/video/QueryVodPullStream',
            QueryVodFile: 'oam/video/QueryVodFile',
            
            QueryStreamList: 'oam/video/QueryStreamList',  //直播流详情
            QueryVodStream: 'oam/video/QueryVodStream', //点播流详情
            QueryConfig: 'oam/video/QueryConfig', //配置管理 0:所有 1:厂商 2：用户
            ModifyConfig: 'oam/video/ModifyConfig',

            CreateLivePushStream: 'api/video/CreateLivePushStream',
            CreateLivePullStream: 'api/video/CreateLivePullStream',
            EnableVodVideo: 'api/video/EnableVodVideo', //恢复点播
            ForbidVodVideo: 'api/video/ForbidVodVideo', //禁止点播
            EnableLiveStream: 'api/video/EnableLiveStream', //启用直播
            ForbidLiveStream: 'api/video/ForbidLiveStream', //禁止直播
            UploadVodVideo: 'api/video/UploadVodVideo', //创建点播，
            QueryVodFileStatus: 'api/video/QueryVodFileStatus',
            // 需要加/api
            QueryLiveStreamVisitors: 'api/video/QueryLiveStreamVisitors',
            QueryVodStreamBM: 'api/video/QueryVodStreamBM',
            DeleteVodFile: 'api/video/DeleteVodFile',
            PrepareVodVideo: 'api/video/PrepareVodVideo'
        },
    }
}